import {componentTypeArray} from "../common";
import {tableOptBtnConfig} from "../table";

export default {
  "tableId": "componentRelease",
  "name": "组件",
  "columns": [
    {
      label: '组件名称',
      width: 200,
      children: [
        {
          key: 'name',
          tooltip: true
        },
      ]
    },

    {
      label: '组件类型',
      width: 150,
      children: [
        {
          key: 'categoryText'
        },
      ]
    },
    {
      label: '创建人',
      width: 150,
      children: [
        {
          key: 'createdByName'
        },
      ]
    },
    {
      label: '版本号',
      width: 150,
      children: [
        {
          key: 'version'
        },
      ]
    },
    {
      label: '更新时间',
      width: 100,
      children: [
        {
          updatedDate: true
        }
      ],
    },

  ],
  "filters": [
    {
      "fieldType": "input",
      key: 'name',
      label: '组件名称'
    },

    {
      "fieldType": "string",
      key: 'category',
      label: '组件类型',
      "options": componentTypeArray
    },
  ]
}
